package io操作;

import java.io.FileOutputStream;
import java.io.IOException;

public class 字节流写文件 {

    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("C:/Test/1.txt");
        String s = "写文件操作";
        fos.write(s.getBytes("UTF-8"));
        fos.close();
    }
}
